home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / print / hpgl2ps.zip / PLOTINIT.C < prev    next >
C/C++ Source or Header  |  1989-08-08  |  2KB  |  69 lines

  1. /* plotinit.c */
  2. #include "defn.h"
  3.  
  4. plotinit()
  5. {
  6.     /*
  7.      * Initialisation of PostScript plot macros 
  8.      */
  9.     MOVE = "M";
  10.     RMOVE = "R";
  11.     DRAW = "D";
  12.     RDRAW = "I";
  13.  
  14.     LANDSCAPE = 1;        /* Display plot in Landscape mode */
  15.  
  16.     SCALE = 1;            /* Default Scale */
  17.  
  18.     PLOTABS = 1;        /* Absolute plot coordinates */
  19.  
  20.     PENDOWN = 0;        /* Penup */
  21.  
  22.     SETDOT = 0;            /* HP-GL only for linetype = 0 */
  23.  
  24.     SYMBOL = 0;            /* HP-GL only */
  25.  
  26.     FONT_H_MULT = 1.2;
  27.     FONT_W_MULT = 3.6;        /* necessary for postscript fonts to match */
  28.                 /*  when using relative font sizing */
  29.     /*
  30.      *       Default line/pen sizes (in mm)
  31.      */
  32.     pen_size[0] = 0.1;
  33.     pen_size[1] = 0.2;
  34.     pen_size[2] = 0.3;
  35.     pen_size[3] = 0.4;
  36.     pen_size[4] = 0.5;
  37.     pen_size[5] = 0.7;
  38.     pen_size[6] = 1.0;
  39.     pen_size[7] = 1.25;
  40.     pen_size[8] = 1.5;
  41.  
  42.     font = "Helvetica";        /* Default font */
  43.  
  44.     EOL = '\003';        /* End of line terminator default */
  45.  
  46.     /*
  47.      * Default character specifications
  48.      */
  49.     char_angle = 0;        /* Degrees  */
  50.     char_slant = 0;        /* tan(angle) */
  51.     /* modified for larger defaults  GJ 
  52.     char_height = 2.7;
  53.     char_space = 0.8;
  54.     char_width = 1.9;
  55.     */ 
  56.     char_height = 4.0;        /* mm */
  57.     char_space = 1.2;        /* mm */
  58.     char_width = 2.8;        /* mm */
  59.  
  60.     /*
  61.      * Page offsets set to zero
  62.      */
  63.     xoffset = yoffset = 0;
  64.     /*
  65.      * Define degree to radian parameter
  66.      */
  67.     deg_rad = asin(1.0) / 90.0;
  68. }
  69.